package carltechnology.com.mahjonggame.mode.impl;

import carltechnology.com.mahjonggame.mode.AbstractData;

/**
 * Created by WZTCM on 2016/6/7.
 */
public class MahjongGameOutMode extends AbstractData {
    private String [] mNames;
    private String  mDate;
    private int mUnitPrice;
    private MahjongGameOutMode(String[] names,String date,int unitPrice) {
        mNames = names;
        mDate = date;
        mUnitPrice = unitPrice;
    }

    @Override
    public String[] getName() {
        return mNames;
    }

    @Override
    public String getDate() {
        return mDate;
    }

    @Override
    public int getUnitPrice() {
        return mUnitPrice;
    }

//    @Override
//    public String getNames() {
//        StringBuilder sb = new StringBuilder(mNames[0])
//                .append("_").append(mNames[1])
//                .append("_").append(mNames[2])
//                .append("_").append(mNames[3]);
//        return sb.toString();
//    }
    public static MahjongGameOutMode _of(String[] names,String date,int unitPrice){
        return new MahjongGameOutMode(names,date,unitPrice);
    }
}
